package com.zhuojy.equity.mall.admin.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @author xrz
 * @version 1.0
 * @description:TODO
 * @date 2024/3/26 14:29
 */
@Document(collection = "logs")
@Data
public class LogBean {                                                                       
    private String id;
    private Integer userId;
    private String username;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    private String ip;
    private String className;//类名
    private String method;//方法名
    private String reqParam;//请求
}


